package Exer03_分支;

import java.util.Scanner;

public class _1_3_13_判断是否位闰年 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("输入一个年份，判断是否为闰年");
        int year = scanner.nextInt();
        if ((year % 4 == 0 && year % 100 != 0) || year %400 ==0){
            System.out.println("是闰年");
        }else{
            System.out.println("不是闰年");
        }
        scanner.close();
    }
}
